home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / lmwrap / ogl / lmwrap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-11  |  2.5 KB  |  75 lines

  1. /*
  2.  * Copyright (c) 1995, Silicon Graphics, Inc.
  3.  *
  4.  * Permission to use, copy, modify, distribute, and sell this software and
  5.  * its documentation for any purpose is hereby granted without fee, provided
  6.  * that the name of Silicon Graphics may not be used in any advertising or
  7.  * publicity relating to the software without the specific, prior written
  8.  * permission of Silicon Graphics.
  9.  *
  10.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
  11.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
  12.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  13.  *
  14.  * IN NO EVENT SHALL SILICON GRAPHICS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
  15.  * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
  16.  * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE
  17.  * POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN
  18.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  19.  *
  20.  * OpenGL(TM) is a trademark of Silicon Graphics, Inc.
  21.  */
  22. /*----------------------------------------------------------------------------
  23.  *
  24.  * file   : mygl.h
  25.  *
  26.  * Author : Yusuf Attarwala
  27.  * Date   : Apr 95
  28.  *
  29.  *---------------------------------------------------------------------------*/
  30.  
  31.  /* emulate irisGL's gl.h for lighting */
  32.  
  33. #define LMNULL                  0.0
  34.  
  35. /* MATERIAL properties */
  36. #define DEFMATERIAL             0
  37. #define EMISSION                1
  38. #define AMBIENT                 2
  39. #define DIFFUSE                 3
  40. #define SPECULAR                4
  41. #define SHININESS               5
  42. #define COLORINDEXES            6
  43. #define ALPHA                   7
  44.  
  45. /* LIGHT properties */
  46. #define DEFLIGHT                100
  47. #define LCOLOR                  101
  48. #define POSITION                102
  49. #define SPOTDIRECTION           103
  50. #define SPOTLIGHT               104
  51.  
  52.  
  53. /* LIGHTINGMODEL properties */
  54. #define DEFLMODEL               200
  55. #define LOCALVIEWER             201
  56. #define ATTENUATION             202
  57. #define ATTENUATION2            203
  58. #define TWOSIDE                 204
  59.  
  60. /* TARGET constants */
  61. #define MATERIAL                1000
  62. #define BACKMATERIAL            1001
  63. #define LIGHT0                  1100
  64. #define LIGHT1                  1101
  65. #define LIGHT2                  1102
  66. #define LIGHT3                  1103
  67. #define LIGHT4                  1104
  68. #define LIGHT5                  1105
  69. #define LIGHT6                  1106
  70. #define LIGHT7                  1107
  71. #define LMODEL                  1200
  72.  
  73. extern void     lmbind();
  74. extern void     lmdef();
  75.